<html>
	<head>
        <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/dojo/1.7/dijit/themes/tundra/tundra.css" />
        <script type="text/javascript">
            var dojoConfig = {
                parseOnLoad: true,
                isDebug: true,
                locale: 'ru-ru',
            };
        </script>
        <script src="http://ajax.googleapis.com/ajax/libs/dojo/1.7/dojo/dojo.js"></script>

        <script type="text/javascript">
            //dojo.require("dojo/has");
            //dojo.require("dojo/_base/sniff");
            require(["dojo/has", // alias has API to "has"
                "dojo/_base/array", // alias array api to "arrayUtil"
                "dojo/dom", // alias DOM api to "dom"
                "dojo/_base/sniff", // load browser-related has feature tests
                "dojo/domReady!"], // wait until DOM is loaded
                function(has, arrayUtil, dom){

                    function makeFancyAnswer(who){
                        if(has(who)){
                            return 'Yes, it\'s version ' + who + '-' + has(who);
                        } else {
                            return 'No';
                        }
                    }

                    arrayUtil.forEach(["ie", "mozilla", "ff", "opera", "webkit", "chrome"], function(n){
                        alert(makeFancyAnswer(n));
                    });
                    
                    

            });

            dojo.ready(function(){
                //alert(has('safari'));
                //alert(dojo.is);
            });
        </script>


    </head>
    <body class="tundra">
        <div id="mainDiv">

        </div>
        <ul id="forEachUl">
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
        </ul>
    </body>
</html>